import { Injectable, InjectByName } from '../../decorators/inject';
import { TableEvent } from '../table-event';
import { NTableEvent } from '../../types/cors';
import { IValueBase, IValueBoolean, IValueEmpty, IValueError, IValueNumber,IValueString, ActualValue} from './types';

@Injectable()
export class ValueError implements IValueBase{
    type: 'ERROR' = 'ERROR';
    constructor() {
  
    }
    public update(val: any) {
      // throw new Error('不能更新错误值')
    };
    public toString() {
      return '!ERROR#';
    }
    public getValue() {
      return '';
    }
    public getOriginDataType() {
      return 'ERROR'
    }
    public destroy() {
  
    }
  }